package com.landiao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.landiao.common.pojo.EmpOrderInfo;
import com.landiao.common.pojo.Page;
import com.landiao.entities.OrderInfo;

public interface OrderInfoMapper extends BaseMapper<OrderInfo,String>{
    int deleteByPrimaryKey(String orderInfoId);

    int insert(OrderInfo record);

    int insertSelective(OrderInfo record);

    OrderInfo selectByPrimaryKey(String orderInfoId);

    int updateByPrimaryKeySelective(OrderInfo record);

    int updateByPrimaryKey(OrderInfo record);
    
    /**
     * 包含服务项目名称、服务人员名称
     * @param t
     * @param page
     * @return
     */
    List<OrderInfo> queryByPageFromWx(@Param("t")OrderInfo t,Page<OrderInfo> page);
    
    /**
     * 微信端员工订单列表
     * @param employeeId
     * @param page
     * @return
     */
    List<EmpOrderInfo> queryEmpOrderByPage(@Param("employeeId")String employeeId,Page<EmpOrderInfo> page);
    
    OrderInfo selectByOrderNo(String orderNo);
}